import sys

from loguru import logger as log

log.remove()
log.add(sys.stdout, level="INFO", format="<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> "
                                            "<r>|</r> <le><b>{extra}</b></le> "
                                            "<r>|</r> {thread.id} <r>|</r> <y><b>{thread.name: ^12}</b></y> "
                                            "<r>|</r> <level>{level: <8}</level> "
                                            "<r>|</r> <cyan>{name}</cyan><r>:</r><cyan>{function}</cyan><r>:</r><cyan>{line}</cyan> "
                                            "<r>-</r> <level>{message}</level>",
           filter=None, colorize=None, serialize=False, backtrace=True, diagnose=True, enqueue=False, context=None, catch=True)